SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO
CREATE FUNCTION [dbo].[FECHA_PRESENTACION_DEFAULT] ()
RETURNS datetime
AS
BEGIN
   DECLARE @FECHAPRES AS DATETIME
   SELECT @FECHAPRES=VALOR1 FROM TB_PARAMETROS WHERE IDPARAMETRO=89
   RETURN (@FECHAPRES)
END
GO
